home *** CD-ROM | disk | FTP | other *** search
/ One Click 21 (Special) / OC021.iso / Juegos / 835.swf / scripts / frame_1 / PlaceObject2_4_2 / CLIPACTIONRECORD onClipEvent(enterFrame).as next >
Encoding:
Text File  |  2005-11-19  |  306 b   |  16 lines

  1. onClipEvent(enterFrame){
  2.    dx = _root._xmouse - this._x;
  3.    dy = _root._ymouse - this._y;
  4.    this._x += vx;
  5.    vx = vx / 1.4 + dx / 10;
  6.    this._y += vy;
  7.    vy = vy / 1.4 + dy / 10;
  8.    with(_root)
  9.    {
  10.       if(_framesloaded >= _totalframes)
  11.       {
  12.          gotoAndPlay(2);
  13.       }
  14.    }
  15. }
  16.